//index.js
const app = getApp()

Page({
  data: {
   
  },

  onLoad: function() {
    // 获取用户信息
    wx.getSetting({
      success: res => {
        if (res.authSetting['scope.userInfo']) {
          // 已经授权，可以直接调用 getUserInfo 获取头像昵称，不会弹框
          wx.getUserInfo({
            success: res => {
              this.setData({
                avatarUrl: res.userInfo.avatarUrl,
                userInfo: res.userInfo
              })
            }
          })
        }
      }
    })
  },

  checkList:function(){
    wx.navigateTo({
      url:"../checkList/index"
    })
  },
  
  checkResult:function(){
    wx.navigateTo({
      url:"../checkResult/index"
    })
  },
  myCheck:function(){
    wx.navigateTo({
      url:"../myCheck/index"
    })
  },

  findProduct:function(){
    wx.navigateTo({
      url: '../findProduct/index'
    })
  }
  

})
